from django.contrib import admin

from markdownx.admin import MarkdownxModelAdmin
from orderable.admin import OrderableAdmin
from .models import HelpArticle
from import_export.admin import ImportExportModelAdmin


class HelpArticleAdmin(OrderableAdmin, ImportExportModelAdmin, MarkdownxModelAdmin,):
    class Media:
        extend = False
        js = (
            'http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js',
            'http://apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js',
        )


admin.site.register(HelpArticle, HelpArticleAdmin)
